package create.factory;

import create.factory.abstractClass.AppleFactory;
import create.factory.abstractClass.Factory;

/**
 * @author dali
 * @date 2021-07-09 14:08
 * @Description
 */

public class AbstractFactoryTest {
    public static void main(String[] args) {
        //获得苹果工厂
        Factory apple = new AppleFactory();
        //可生产所有的苹果产品
        apple.getComputer();
        apple.getPhone();
    }
}
